package com.hhkj.study.admin.article.service.base.impl;

import com.github.pagehelper.PageInfo;
import com.hhkj.study.admin.article.entity.ArticleExamFlow;
import com.hhkj.study.admin.article.mapper.ArticleExamFlowMapper;
import com.hhkj.study.admin.article.model.podo.ArticleBannerDo;
import com.hhkj.study.admin.article.model.podo.ArticleBannerPo;
import com.hhkj.study.admin.article.model.podo.ArticleExamFlowDo;
import com.hhkj.study.admin.article.model.podo.ArticleExamFlowPo;
import com.hhkj.study.admin.article.service.base.ArticleExamFlowService;
import com.ruoyi.common.base.biz.service.base.BaseServiceImpl;
import org.springframework.stereotype.Service;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
*
* @author SERVER
* @since 2024-09-06
*/
@Service
public class ArticleExamFlowServiceImpl extends BaseServiceImpl<ArticleExamFlow, ArticleExamFlowDo, ArticleExamFlowPo, ArticleExamFlowMapper> implements ArticleExamFlowService {

    @Override
    public PageInfo<ArticleExamFlowPo> pagingPoByDo(ArticleExamFlowDo conditionDo) {
        conditionDo.getPageDomain().setOrderByColumn("orderNum");
        conditionDo.getPageDomain().setIsAsc("asc");
        return super.pagingPoByDo(conditionDo);
    }


    @Override
    public Map<String, String> getOrderColumnMap() {
        return new HashMap<String, String>() {{
            put("orderNum", "xaef.order_num");
            put("id", "xaef.id");
        }};
    }
}